package com.zhx.ad.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 *describe: 
 *
 *@author zhanghaixuan
 *@date 2019/02/07
 **/
@Configuration
public class RestTemplateConfig {

	@Bean
	@LoadBalanced
	RestTemplate restTemplate() {

		return new RestTemplate();
	}
}
